/*
 * @LastEditTime: 2024-09-30 18:39:40
 * @Description:
 * @Date: 2024-09-27 01:43:53
 * @Author: wangshan
 * @LastEditors: wangshan
 */
import request from "@/utils/request";
import qs from "qs";

//标签
// 新增
export function addCommonSetting(data) {
    return request({
        url: "/starlight/commonSettings",
        method: "post",
        data: data,
    });
}

// 获取变量详情
export function getCommonSettings() {
    const url = "/starlight/commonSettings";
    return request({
        url,
        method: "get",
        headers: {
            "Content-Type": "application/x-www-form-urlencoded",
        },
    });
}

// 修改客服详情
export function updateCommonSettings(data) {
    return request({
        url: "/starlight/commonSettings",
        method: "put",
        data,
    });
}